<include file="Common:layout" />
<body style="background-color: rgb(255, 255, 255); overflow: auto; cursor: default;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title"><a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>店铺管理</h3>
                <h5>修改店铺</h5>
            </div>
        </div>
    </div>
<form action="{:U('Shop/getShop')}" method="post" class="form-horizontal" id="express_form">
    <input type="hidden" name="license_img" value="{$shop['license_img']}" class="license_img">
    <input type="hidden" name="id_img" value="{$shop['id_img']}" class="id_img">
    <input type="hidden" name="id" value="{$id}">

    <div class="fixed-bar">
        <div class="item-title">
            <a class="back" href="javascript:history.back();" title="返回列表"><i class="fa fa-arrow-circle-o-left"></i></a>
            <div class="subject">
                <h3>店铺所有的信息</h3>
            </div>
        </div>
    </div>

    <div id="tab2">
    <table class="store-joinin" cellspacing="0" cellpadding="0" border="0">
        <thead>
        <tr>
            <th colspan="20">店铺信息</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th>公司名称：</th>
            <td colspan="20"><input type="text" name="company" style="width:98%;;" value="{$shop['company']}"></td>
        </tr>

        <tr>
            <th>店主：</th>
            <td colspan="20"><input type="text" name="keeper" style="width:98%;;" value="{$info['name']}"></td>
        </tr>

        <tr>
            <th>密码：</th>
            <td colspan="20"><input type="text" name="password" style="width:98%;;" value=""></td>
        </tr>


        <tr>
            <th>银行卡号：</th>
            <td colspan="20"><input type="text" name="bank_no" style="width:98%;;" value="{$shop['bank_no']}"></td>
        </tr>


        <tr>
            <th>银行卡所有人：</th>
            <td colspan="20"><input type="text" name="bank_user_name" style="width:98%;;" value="{$shop['bank_user_name']}"></td>
        </tr>


        <tr>
            <th>店铺名称：</th>
            <td colspan="20"><input type="text" name="shop_name" style="width:98%;;" value="{$shop['shop_name']}"></td>
        </tr>
        <tr>
            <th class="w150">店铺地址：</th>
            <td colspan="20">
                <input type="text" name="address" style="width:98%;" value="{$shop['address']}">
            </td>
        </tr>

        <tr>
            <th class="w150">门店电话：</th>
            <td colspan="20">
                <input type="text" name="tel" style="width:98%;" value="{$shop['tel']}">
            </td>
        </tr>

        <tr>
            <th class="w150">店主手机：</th>
            <td colspan="20">
                <input type="text" name="phone" style="width:98%;" value="{$info['mobile']}">
            </td>
        </tr>
        <tr>
            <th class="w150">开店说明：</th>
            <td colspan="20">
                <input type="text" name="create_desc" style="width:98%;" value="{$shop['create_desc']}">
            </td>
        </tr>

        <tr>
            <th class="w150">审核状态：</th>
            <td colspan="20">
                    <select name="state" class="small form-control">
                        <option value="-1" <if condition="$shop['state'] eq -1"> selected="selected" </if> >不通过</option>
                        <option value="0" <if condition="$shop['state'] eq 0"> selected="selected" </if> >未审核</option>
                        <option value="1" <if condition="$shop['state'] eq 1"> selected="selected" </if> >已通过</option>
                    </select>
            </td>
        </tr>

        </tbody>
    </table>

    <table class="store-joinin" cellspacing="0" cellpadding="0" border="0">
        <thead>
        <tr>
            <th colspan="20">证件信息：</th>
        </tr>
        </thead>
        <tbody>
        <tr>
            <th>营业执照：</th>
            <td colspan="20">
                <a nctype="nyroModal" href="{$shop[license_img]}" target="_blank" id="business_license">
                    <img src="{$shop[license_img]}" alt="">
                </a>
                <img src="/WechatUnion/Public/images/img_upload.png" width="100" height="100" onclick="GetUploadify(1,'','shop','img_call_back1')">
            </td>
        </tr>
        <tr>
            <th>店主身份证：</th>
            <td colspan="20">
                <a nctype="nyroModal" href="{$shop[id_img]}" target="_blank" id="id_img">
                    <img src="{$shop[id_img]}" alt="">
                </a>
                <img src="/WechatUnion/Public/images/img_upload.png" width="100" height="100" onclick="GetUploadify(1,'','shop','img_call_back2')">

            </td>
        </tr>
        </tbody>

    </table>
    <div class="bot" style="margin-bottom: 10px;"><a id="submitBtn" class="ncap-btn-big ncap-btn-green" href="JavaScript:void(0);">确认提交</a></div>
    </div>
</form>
<script>

    //营业执照回调地址
    function img_call_back1(img_url) {
        $('#business_license').attr('href', img_url);
        $('#business_license img').attr('src', img_url);
        $('.license_img').attr('value',img_url);
    }

    //店主身份证
    function img_call_back2(img_url) {
        $('#id_img').attr('href', img_url);
        $('#id_img img').attr('src', img_url);
        $('.id_img').attr('value',img_url);
    }

    //图片上传回调函数
    function img_call_back(fileurl_tmp) {
        //营业执照图片的路径展示
        $("#license_img").val(fileurl_tmp);
        //营业执照图片的放大
        $("#img_i").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");
    }

    function img_call_id(fileurl_tmp) {
        $('#id_img').val(fileurl_tmp);
        $("#img_i_2").attr('onmouseover', "layer.tips('<img src="+fileurl_tmp+">',this,{tips: [1, '#fff']});");

    }

    $("#submitBtn").click(function(){
        $("#express_form").submit();
    });
</script>
</body>
</html>